home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.n / tk.n < prev    next >
Text File  |  1995-07-25  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4.      ttttkkkk((((nnnn))))                        TTTTkkkk (((( ))))                         ttttkkkk((((nnnn))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           tk - Manipulate Tk internal state
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           ttttkkkk _o_p_t_i_o_n ?_a_r_g _a_r_g ...?
  15.      _________________________________________________________________
  16.  
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.           The ttttkkkk command provides access to miscellaneous elements  of
  20.           Tk's internal state.  Most of the information manipulated by
  21.           this command pertains to the application as a whole, or to a
  22.           screen  or display, rather than to a particular window.  The
  23.           command  can  take  any  of  a  number  of  different  forms
  24.           depending on the _o_p_t_i_o_n argument.  The legal forms are:
  25.  
  26.           ttttkkkk ccccoooolllloooorrrrmmmmooooddddeeeellll _w_i_n_d_o_w ?_n_e_w_V_a_l_u_e?
  27.                If _n_e_w_V_a_l_u_e isn't specified, this command  returns  the
  28.                current  color  model in use for _w_i_n_d_o_w's screen, which
  29.                will be either ccccoooolllloooorrrr or  mmmmoooonnnnoooocccchhhhrrrroooommmmeeee.   If  _n_e_w_V_a_l_u_e  is
  30.                specified,  then  it must be either ccccoooolllloooorrrr or mmmmoooonnnnoooocccchhhhrrrroooommmmeeee
  31.                or an abbreviation of one of them; the color model  for
  32.                _w_i_n_d_o_w's screen is set to this value.
  33.  
  34.                The color model is  used  by  Tk  and  its  widgets  to
  35.                determine  whether it should display in black and white
  36.                only or use colors.  A single color model is shared  by
  37.                all  of  the  windows managed by one process on a given
  38.                screen.  The color model for a screen is set  initially
  39.                by  Tk  to  mmmmoooonnnnoooocccchhhhrrrroooommmmeeee if the display has four or fewer
  40.                bit planes and to ccccoooolllloooorrrr  otherwise.   The  color  model
  41.                will  automatically be changed from ccccoooolllloooorrrr to mmmmoooonnnnoooocccchhhhrrrroooommmmeeee
  42.                if Tk fails to allocate a color because all entries  in
  43.                the  colormap  were  in use.  An application can change
  44.                its own color model at any time (e.g. it  might  change
  45.                the  model  to mmmmoooonnnnoooocccchhhhrrrroooommmmeeee in order to conserve colormap
  46.                entries, or it might set the  model  to  ccccoooolllloooorrrr  to  use
  47.                color  on a four-bit display in special circumstances),
  48.                but an application is not allowed to change  the  color
  49.                model  to  ccccoooolllloooorrrr unless the screen has at least two bit
  50.                planes.
  51.  
  52.  
  53.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  54.           color model, internal state
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/23/95)
  64.  
  65.  
  66.  
  67.